package com.wzx.user.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wzx.user.common.BasePojo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wzx
 * @version 1.0
 * @date 2023/4/9 - 22:00
 * @description 标题
 */
@Data
@TableName("t_redpkg_send")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "RedPkg", description = "红包表")
public class RedPkg extends BasePojo implements Serializable  {

    @TableId(value = "redPkgId", type = IdType.AUTO)
    @ApiModelProperty(notes = "主键id", required = true)
    private Integer redPkgId;

    @TableField("sendId")
    @ApiModelProperty(value = "发送者id")
    private Integer sendId;

    @TableField("sendName")
    @ApiModelProperty(value = "发送者姓名")
    private String sendName;

    @TableField("sendHead")
    @ApiModelProperty(value = "发送者头像")
    private String sendHead;

    @TableField("totalAmount")
    @ApiModelProperty(value = "发送金额（总金额）")
    private Integer totalAmount;

    @TableField("totalNum")
    @ApiModelProperty(value = "总个数")
    private Integer totalNum;

    @TableField("title")
    @ApiModelProperty(value = "红包标题（恭喜发财等）")
    private String title;

    @TableField("type")
    @ApiModelProperty(value = "红包类型（1：普通红包；2：手气红包；3：指定红包；4：私人红包）")
    private String type;

    @TableField("surplusAmount")
    @ApiModelProperty(value = "剩余金额")
    private Integer surplusAmount;

    @TableField("surplusNum")
    @ApiModelProperty(value = "剩余红包个数")
    private Integer surplusNum;

    @TableField("readUserIds")
    @ApiModelProperty(value = "已抢过红包人数（以，隔开）")
    private String readUserIds;

    @TableField("generateArr")
    @ApiModelProperty(value = "每个红包分配")
    private String generateArr;

    @TableField("dataState")
    @ApiModelProperty(value = "红包状态（1：对方未领取；2：全部领取完毕；3：时间超过，已退还）")
    private String dataState;

    @TableField("lootAllTime")
    @ApiModelProperty(value = "红包抢光时间")
    private Date lootAllTime;

    @TableField("appointUserId")
    @ApiModelProperty(value = "指定抢红包对象")
    private Integer appointUserId;

    @TableField("appointUserName")
    @ApiModelProperty(value = "指定抢红包对象")
    private String appointUserName;

    @TableField("maxAmount")
    @ApiModelProperty(value = "手气最佳金额")
    private Integer maxAmount;

    @TableField("maxIndex")
    @ApiModelProperty(value = "手气最佳下标")
    private Integer maxIndex;

    @TableField("groupId")
    @ApiModelProperty(value = "群聊id")
    private Integer groupId;

    @TableField("readUserNames")
    @ApiModelProperty(value = "抢过用户的昵称")
    private String readUserNames;
}
